package analizadorLexico.tokens;

public class TokenError implements Token{

	private StringBuffer atributo;
	private int linea;
	private int columna;
	
	public TokenError(StringBuffer atributo,int linea,int columna)
	{
		this.atributo=atributo;
		this.linea=linea;
		this.columna=columna;
	}
	
	public StringBuffer getTipo()
	{
		return new StringBuffer("TOKEN-ERROR");
	}
	
	public String toString()
	{
		//return getTipo()+": "+atributo;
		return atributo.toString();
	}


	public Object getAtributo() {

		return atributo;
	}
	
	public int getLinea() {
		return linea;
	}

	public int getColumna() {
		return columna;
	}
}
